package com.bootdo.common.request;

/**
 *
 * @author ：崔
 * @commons.core.model
 * @Description: 基础返回码，具体业务返回码可继承ResultCode
 */
public class ResultCode {

    /**
     * 成功
     */
    public final static int SUCCESS = 200;

    // 通用错误以9开头
    /**
     *未知错误
     */
    public final static int ERROR = 9999;

    /**
     * 格式错误
     */
    public final static int FORMAT_ERROR = 205;

    /**
     * 错误返回
     */
    public final static int NORMAL_ERROR = -1;


    /**
     *应用级错误
     */
    public final static int APPLICATION_ERROR = 9000;

    /**
     *参数验证错误
     */
    public final static int VALIDATE_ERROR = 9001;

    /**
     *业务逻辑验证错误
     */
    public final static int SERVICE_ERROR = 9002;

    /**
     *缓存访问错误
     */
    public final static int CACHE_ERROR = 9003;

    /**
     *数据访问错误
     */
    public final static int DAO_ERROR = 9004;

    /**
     *报告机构名称异常
     */
    public final static int RINM_ERROR =9005;

    /**
     *分页参数异常
     */
    public final static int PAGE_ERROR =9007;
    /**
     *获取用户信息异常
     */
    public final static int UESR_ERROR =9008;
    /**
     *取字典异常
     */
    public final static int DISTRICT_ERROR =9009;
}
